<!DOCTYPE html>
<html style="touch-action: none">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  <meta name="format-detection" content="telephone=no"/>
  <meta http-equiv="Expires" content="0">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Cache-control" content="no-cache">
  <meta http-equiv="Cache" content="no-cache">
  <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  <!--<script src="https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js"></script>-->
  <!--<script>-->
  <!--var vConsole = new VConsole()-->
  <!--</script>-->
  <!--<link rel="stylesheet" href="http://at.alicdn.com/t/font_334464_h7gw6m3sy1rzr529.css">-->
  <style>
    /*联系客服按钮样式开始*/
    #YSF-BTN-HOLDER {
      position: fixed;
      max-width: 40px;
      max-height: 40px;
      right: 45px !important;
      bottom: 75px !important;
      cursor: pointer;
      overflow: visible;
      filter: alpha(opacity=100);
      opacity: 1;
      z-index: 9990;
    }

    #YSF-CUSTOM-ENTRY-0 {
      position: relative;
      bottom: 0 !important;
      width: auto;
      background-color: transparent !important;
      box-shadow: none !important;
    }

    #YSF-CUSTOM-ENTRY-0 img {
      max-width: 40px !important;
      height: auto;
    }

    /*联系客服按钮样式结束*/
  </style>
  <title>淘只二手表</title>
</head>
<body class="">
  <!--<img id="kf" onclick="contactCustom()" style="z-index: 98; width: 50px; height: 50px;position: fixed; right: 50px;bottom: 75px;" src="http://shop.fjjpny.com/wap/static/images/kf.png"/>-->
  <div id="app">
    <router-view></router-view>
  </div>
  <script src="https://qiyukf.com/script/2565b957dfe5bc21ce45062c883012fe.js"></script>
  <script src="https://unpkg.com/draggabilly@2.1.1/dist/draggabilly.pkgd.min.js"></script>
  <script>

    var deviceType = getDeviceType()
    var customUrl = 'http://shop.fjjpny.com/wap/custom.html'
    //
    // function contactCustom() {
    //   console.log('deviceType', deviceType)
    //   if ( deviceType == 'Android' || deviceType == 'iPhone') {
    //     if(plus) {
    //       plus.runtime.openURL(customUrl + '?memberId=7557')
    //     } else {
    //       console.log('plus not define')
    //     }
    //   } else {
    //     ysf.open()
    //   }
    // }
    function contactCustom() {
      var baseConfig = {
        id: 1,
        url: '/',
        name: '会员1',
        avatar: 'http://wx2.sinaimg.cn/mw690/5db11ff4gy1flxmew7edlj203d03wt8n.jpg',
        group: 1
      }
      console.log('domain', window.location.host)
      var url = 'http://' + window.location.host + '/static/kefu/mobile.html' + '?group=' + baseConfig.group + '&id=' + baseConfig.id +
        '&name=' + baseConfig.name + '&avatar=' + baseConfig.avatar
      window.location.href = url
    }

    function getDeviceType() {
      var agent = navigator.userAgent
      var device = ''
      if (agent.indexOf('MicroMessenger') !== -1) {
        device = 'weixin'
      } else if (agent.indexOf('Android') !== -1) {
        device = 'Android'
      } else if (agent.indexOf('iPhone') !== -1) {
        device = 'iPhone'
      } else if (agent.indexOf('iPad') !== -1) {
        device = 'iPad'
      } else if (agent.indexOf('Windows') !== -1) {
        device = 'Windows'
      } else {
        device = 'unknown'
      }
      return device
    }
  </script>
</body>
</html>
